package com.cookbook.database.data;

import com.cookbook.database.model.FavoritesKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FavoritesMapper {
    List<FavoritesKey> selectWithOffset(
            @Param("userid") Integer userid);

    void insert(@Param("userId") Integer userId,
                @Param("cookbookId") Integer cookbookId);

    Long deleteWithFavoriteIdAndUserId(
            @Param("userId") Integer userId,
            @Param("cookbookId") Integer cookbookId);
}